package com.ijiuchuang.jc_localization.contract.settings;

import android.content.Context;

import com.ijiuchuang.jc_localization.base.BasePresenter;
import com.ijiuchuang.jc_localization.base.BaseView;
import com.ijiuchuang.jc_localization.bean.bmob.AppVersion;

import rx.Subscriber;
import rx.functions.Action1;

/**
 * Created by Veev on 2016/6/17
 *
 * @link 384506557@qq.com
 */
public interface SettingsContract {

    interface View extends BaseView<Presenter> {
        // do in here
        void setBannerMode(int mode);
    }

    interface Presenter extends BasePresenter {
        // do in here
        void checkVersion();
        void save(String key, int value);
        void loadConfig();
    }

    interface Model {
        void checkVersion(Subscriber<AppVersion> subscriber);
        void save(String key, int value);
        int loadInteger(String key);
        boolean loadBoolean(String key);
    }
}
